(function(){function Db(){function a(){a.done||(Qa=a.done=!0,Ra=!1,d.h(R,function(e){e.rd()}))}function b(){try{B.documentElement.doScroll("left")}catch(e){setTimeout(b,1);return}a()}if(B.addEventListener)"complete"===B.readyState?a():B.addEventListener("DOMContentLoaded",a,!1);else if(B.attachEvent){B.attachEvent("onreadystatechange",a);var c=!1;try{c=null===r.frameElement}catch(e){}B.documentElement.doScroll&&c&&b()}d.Tc(r,"load",a,!0)}function Eb(){E.init=function(a,b,c){if(c)return E[c]||(E[c]= R[c]=ma(a,b,c),E[c].Ba()),E[c];c=E;R.mixpanel?c=R.mixpanel:a&&(c=ma(a,b,"mixpanel"),c.Ba(),R.mixpanel=c);E=c;1===xa&&(r.mixpanel=E);Fb()}}function Fb(){d.h(R,function(a,b){"mixpanel"!==b&&(E[b]=a)});E._=d}function ya(a){a=d.j(a)?a:d.l(a)?{}:{days:a};return d.extend({},Gb,a)}function ma(a,b,c){var e="mixpanel"===c?E:E[c];if(e&&0===xa)var f=e;else{if(e&&!d.isArray(e)){z.error("You have already initialized "+c);return}f=new l}f.Xb={};f.la(a,b,c);f.people=new x;f.people.la(f);if(!f.g("skip_first_touch_marketing")){a= d.info.ma(null);var g={},k=!1;d.h(a,function(h,p){(g["initial_"+p]=h)&&(k=!0)});k&&f.people.ba(g)}S=S||f.g("debug");!d.l(e)&&d.isArray(e)&&(f.Ya.call(f.people,e.people),f.Ya(e));return f}function l(){}function Hb(a){return a}function Sa(a){throw Error(a+" not available in this build.");}function T(a){this.X=null;this.Xe=a}function y(a){this.props={};this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;"cookie"!==b&&"localStorage"!==b&&(z.s("Unknown persistence type "+ b+"; falling back to cookie"),b=a.persistence="cookie");"localStorage"===b&&d.localStorage.qa()?this.storage=d.localStorage:this.storage=d.cookie;this.load();this.ld(a);this.upgrade();this.save()}function x(){}function C(){}function M(a,b){this.Y=b.Y;this.ua=new O(a,{Y:d.bind(this.o,this),P:b.P,bd:b.bd,cd:b.cd,C:b.C,ob:b.ob});this.O=b.O;this.He=b.Ie;this.Da=b.Da;this.Ve=b.We;this.S=this.O.batch_size;this.Ja=this.O.batch_flush_interval_ms;this.stopped=!this.O.batch_autostart;this.lb=0;this.V={};this.vc= b.vc||!1}function Ta(a,b){var c=[];d.h(a,function(e){var f=e.id;f in b?(f=b[f],null!==f&&(e.payload=f,c.push(e))):c.push(e)});return c}function Ua(a,b){var c=[];d.h(a,function(e){e.id&&!b[e.id]&&c.push(e)});return c}function O(a,b){b=b||{};this.ca=a;if(this.C=b.C)this.P=b.P||new fa,this.lock=new Va(a,{storage:b.bd||r.localStorage,Pb:b.cd});this.o=b.Y||d.bind(Wa.error,Wa);this.Qa=b.Qa||null;this.K=[];this.Ab=!1;this.Pd=b.ob?Ib(d.bind(this.Zb,this),b.ob):d.bind(function(c){return this.Zb([c])},this)} function fa(a){this.storage=a||r.localStorage}function Va(a,b){b=b||{};this.ca=a;this.storage=b.storage||r.localStorage;this.Qc=b.Qc||100;this.Pb=b.Pb||2E3;this.Rc=b.Rc||D}function na(){this.Mc="submit"}function ba(){this.Mc="click"}function Q(){}function A(a){this.tb=a.tb;this.oa=a.Ud;this.Me=a.Le;this.wc=a.Wd;this.track=a.kf}function I(a){this.A=a}function ha(){}function Xa(a){var b=Jb,c=a.split(".");c=c[c.length-1];if(4c?"0"+c:c}return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};d.da=function(a){var b={};d.h(a,function(c,e){d.Cb(c)&&0=h;)f()} function c(){var m,t="",w;if('"'===h)for(;f();){if('"'===h)return f(),t;if("\\"===h)if(f(),"u"===h){for(m=w=0;4>m;m+=1){var u=parseInt(f(),16);if(!isFinite(u))break;w=16*w+u}t+=String.fromCharCode(w)}else if("string"===typeof p[h])t+=p[h];else break;else t+=h}g("Bad string")}function e(){var m="";"-"===h&&(m="-",f("-"));for(;"0"<=h&&"9">=h;)m+=h,f();if("."===h)for(m+=".";f()&&"0"<=h&&"9">=h;)m+=h;if("e"===h||"E"===h){m+=h;f();if("-"===h||"+"===h)m+=h,f();for(;"0"<=h&&"9">=h;)m+=h,f()}m=+m;if(isFinite(m))return m; g("Bad number")}function f(m){m&&m!==h&&g("Expected '"+m+"' instead of '"+h+"'");h=q.charAt(k);k+=1;return h}function g(m){m=new SyntaxError(m);m.pf=k;m.text=q;throw m;}var k,h,p={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},q;var n=function(){b();switch(h){case "{":a:{var m={};if("{"===h){f("{");b();if("}"===h){f("}");var t=m;break a}for(;h;){t=c();b();f(":");Object.hasOwnProperty.call(m,t)&&g('Duplicate key "'+t+'"');m[t]=n();b();if("}"===h){f("}");t=m;break a}f(",");b()}}g("Bad object"); t=void 0}return t;case "[":a:{t=[];if("["===h){f("[");b();if("]"===h){f("]");break a}for(;h;){t.push(n());b();if("]"===h){f("]");break a}f(",");b()}}g("Bad array");t=void 0}return t;case '"':return c();case "-":return e();default:return"0"<=h&&"9">=h?e():a()}};return function(m){q=m;k=0;h=" ";m=n();b();h&&g("Syntax error");return m}}();d.Dd=function(a){var b=0,c=0,e=[];if(!a)return a;a=d.nf(a);do{var f=a.charCodeAt(b++);var g=a.charCodeAt(b++);var k=a.charCodeAt(b++);var h=f<<16|g<<8|k;f=h>>18&63; g=h>>12&63;k=h>>6&63;h&=63;e[c++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(k)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)}while(bk?c++:h=127k?String.fromCharCode(k>>6|192,k&63|128):String.fromCharCode(k>>12|224,k>>6&63|128,k&63|128);null!==h&&(c>f&&(b+=a.substring(f,c)),b+=h,f=c=e+1)}c>f&&(b+=a.substring(f,a.length));return b};d.Ta=function(){try{return r.crypto.randomUUID()}catch(c){for(var a=Array(36),b=0;36>b;b++)a[b]=Math.floor(16*Math.random());a[14]=4;a[19]=a[19]&=-5;a[19]=a[19]|=8;a[8]=a[13]=a[18]= a[23]="-";return d.map(a,function(e){return e.toString(16)}).join("")}};var xb="ahrefsbot;ahrefssiteaudit;amazonbot;baiduspider;bingbot;bingpreview;chrome-lighthouse;facebookexternal;petalbot;pinterest;screaming frog;yahoo! slurp;yandex;adsbot-google;apis-google;duplexweb-google;feedfetcher-google;google favicon;google web preview;google-read-aloud;googlebot;googleweblight;mediapartners-google;storebot-google".split(";");d.Gc=function(a){var b;a=a.toLowerCase();for(b=0;b=c)return this.W=[],!0}else this.W=[{x:a,y:b,timestamp:g}];return!1};var yb={allow_selectors:[],allow_url_regexes:[],block_attrs:[],block_element_callback:null,block_selectors:[],block_url_regexes:[],capture_extra_attrs:[],capture_text_content:!1,scroll_capture_all:!1,scroll_depth_percent_checkpoints:[25,50,75,100],click:!0,input:!0,pageview:"full-url",rage_click:!0,scroll:!0,submit:!0},va={$mp_autocapture:!0};I.prototype.B= function(){try{var a=!!B.createElement("div").matches}catch(b){a=!1}a?(this.de(),this.be(),this.ce(),this.fe(),this.ge(),this.ee()):J.s("Autocapture unavailable: missing required DOM APIs")};I.prototype.ub=function(){var a=this.A.g("autocapture");return a?d.j(a)?d.extend({},yb,a):yb:{}};I.prototype.m=function(a){return this.ub()[a]};I.prototype.na=function(){var a,b=d.info.Ha(),c=this.m("allow_url_regexes")||[];if(c.length){var e=!1;for(a=0;athis.Na)for(c=0;c=k&&this.Naw?(cc.error("Timeout waiting for mutex on "+m+"; clearing lock. ["+q+"]"),u.removeItem(N),u.removeItem(v),g()):setTimeout(function(){try{L()}catch(X){e(X)}},t*(Math.random()+.1))}var q=b||(new Date).getTime()+"|"+Math.random(),n=(new Date).getTime(),m=this.ca,t=this.Qc,w=this.Pb,u=this.storage,G=m+":X",v=m+":Y",N=m+":Z";try{if(oa(u,!0))g();else throw Error("localStorage support check failed");}catch(L){e(L)}},this))}; fa.prototype.B=function(){return D.resolve()};fa.prototype.setItem=function(a,b){return new D(d.bind(function(c,e){try{this.storage.setItem(a,da(b))}catch(f){e(f)}c()},this))};fa.prototype.getItem=function(a){return new D(d.bind(function(b,c){try{var e=ua(this.storage.getItem(a))}catch(f){c(f)}b(e)},this))};fa.prototype.removeItem=function(a){return new D(d.bind(function(b,c){try{this.storage.removeItem(a)}catch(e){c(e)}b()},this))};var Wa=ia("batch");O.prototype.T=function(){return this.Ab||!this.C? D.resolve():this.P.B().then(d.bind(function(){this.Ab=!0},this)).catch(d.bind(function(a){this.o("Error initializing queue persistence. Disabling persistence",a);this.Ab=!0;this.C=!1},this))};O.prototype.enqueue=function(a,b){a={id:za(),flushAfter:(new Date).getTime()+2*b,payload:a};if(this.C)return this.Pd(a);this.K.push(a);return D.resolve(!0)};O.prototype.Zb=function(a){var b=d.bind(function(){return this.T().then(d.bind(function(){return this.wa()},this)).then(d.bind(function(c){return this.Jb(c.concat(a))}, this)).then(d.bind(function(c){c&&(this.K=this.K.concat(a));return c},this)).catch(d.bind(function(c){this.o("Error enqueueing items",c,a);return!1},this))},this);return this.lock.Tb(b,this.Qa).catch(d.bind(function(c){this.o("Error acquiring storage lock",c);return!1},this))};O.prototype.Rd=function(a){var b=this.K.slice(0,a);return this.C&&b.lengthg.flushAfter&&!e[g.id]&&(g.xe=!0,b.push(g),b.length>=a))break}}return b},this)):D.resolve(b)};O.prototype.Ae=function(a){var b={};d.h(a,function(e){b[e]=!0});this.K=Ua(this.K,b);if(this.C){var c=d.bind(function(){return this.T().then(d.bind(function(){return this.wa()},this)).then(d.bind(function(e){e=Ua(e,b);return this.Jb(e)},this)).then(d.bind(function(){return this.wa()},this)).then(d.bind(function(e){for(var f=0;fk.length)return this.Ib=!1,this.aa(),D.resolve();var p=d.bind(function(){return this.ua.Ae(d.map(f,function(m){return m.id})).then(d.bind(function(m){d.h(f,d.bind(function(t){var w=t.id;w?(this.V[w]=this.V[w]||0,this.V[w]++,5=b)return this.o("Network timeout; retrying"), this.flush();var t;if(t=d.j(m)){var w;if(!(w=500<=m.La||429===m.La)){var u;if(u=0>=m.La){var G=r.navigator.onLine;u=!(d.l(G)||G)}w=u}t=w||"timeout"===m.error}if(t){var v=2*this.Ja;m.Wc&&(v=1E3*parseInt(m.Wc,10)||v);v=Math.min(6E5,v);this.o("Error; retry in "+v+" ms");this.Xc(v);return D.resolve()}if(d.j(m)&&413===m.La){if(1f.maxExpires||g>f.idleExpires||c[e].tabId===b)return!0}return!1}).catch(d.bind(function(c){this.v("Error checking recording registry",c)},this))};l.prototype.Xa=Y(function(a){if(r.MutationObserver){var b=d.bind(function(e){var f=d.bind(function(){this.D=this.D||new r.__mp_recorder(this);this.D.resumeRecording(e)}, this);d.l(r.__mp_recorder)?Sa(this.g("recorder_src"),f):f()},this),c=0=n.timeout?"timeout":"Bad HTTP status: "+n.status+" "+n.statusText,q.v(w),e&&(p?e({status:0,La:n.status,error:w,Wc:(n.responseHeaders||{})["Retry-After"]}): e(0))};n.send(k)}catch(w){q.v(w),f=!1}else k=B.createElement("script"),k.type="text/javascript",k.async=!0,k.defer=!0,k.src=a,m=B.getElementsByTagName("script")[0],m.parentNode.insertBefore(k,m);return f};l.prototype.Ya=function(a){function b(k,h){d.h(k,function(p){if(d.isArray(p[0])){var q=h;d.h(p,function(n){q=q[n[0]].apply(q,n.slice(1))})}else this[p[0]].apply(this,p.slice(1))},h)}var c,e=[],f=[],g=[];d.h(a,function(k){k&&(c=k[0],d.isArray(c)?g.push(k):"function"===typeof k?k.call(this):d.isArray(k)&& "alias"===c?e.push(k):d.isArray(k)&&-1!==c.indexOf("track")&&"function"===typeof this[c]?g.push(k):f.push(k))},this);b(e,this);b(f,this);b(g,this)};l.prototype.kc=function(){return!!this.H.Z};l.prototype.zc=function(){var a="__mpq_"+this.g("token");return this.Wb=this.Wb||{Z:{type:"events",Ca:"track",va:a+"_ev"},Hb:{type:"people",Ca:"engage",va:a+"_pp"},groups:{type:"groups",Ca:"groups",va:a+"_gr"}}};l.prototype.he=function(){if(!this.kc()){var a=d.bind(function(c){return new M(c.va,{O:this.config, Y:this.g("error_reporter"),Ie:d.bind(function(e,f,g){this.u(this.$(c.Ca)+"/"+this.g("api_routes")[c.Ca],this.Yb(e),f,this.dc(g,e))},this),Da:d.bind(function(e){return this.hc("before_send_"+c.type,e)},this),We:d.bind(this.Mb,this),C:!0})},this),b=this.zc();this.H={Z:a(b.Z),Hb:a(b.Hb),groups:a(b.groups)}}this.g("batch_autostart")&&this.Lb()};l.prototype.Lb=function(){this.pd=!0;this.kc()&&(this.ha=!0,d.h(this.H,function(a){a.start()}))};l.prototype.Mb=function(){this.ha=!1;d.h(this.H,function(a){a.stop(); a.clear()})};l.prototype.push=function(a){this.Ya([a])};l.prototype.disable=function(a){"undefined"===typeof a?this.ia.Md=!0:this.Ua=this.Ua.concat(a)};l.prototype.Yb=function(a){a=da(a);"base64"===this.g("api_payload_format")&&(a=d.Dd(a));return{data:a}};l.prototype.gb=function(a,b){var c=d.truncate(a.data,255),e=a.endpoint,f=a.jb,g=a.Te,k=a.Ke||{};b=b||ha;var h=!0,p=d.bind(function(){k.dd||(c=this.hc("before_send_"+a.type,c));return c?(z.log("MIXPANEL REQUEST:"),z.log(c),this.u(e,this.Yb(c),k,this.dc(b, c))):null},this);this.ha&&!g?f.enqueue(c).then(function(q){q?b(1,c):p()}):h=p();return h&&c};l.prototype.track=Y(function(a,b,c,e){e||"function"!==typeof c||(e=c,c=null);c=c||{};var f=c.transport;f&&(c.Rb=f);f=c.send_immediately;"function"!==typeof e&&(e=ha);if(d.l(a))this.v("No event name provided to mixpanel.track");else if(this.$b(a))e(0);else{b=d.extend({},b);b.token=this.g("token");var g=this.persistence.Be(a);d.l(g)||(b.$duration=parseFloat((((new Date).getTime()-g)/1E3).toFixed(3)));this.ic(); g=this.g("track_marketing")?d.info.ue():{};b=d.extend({},d.info.ta({mp_loader:this.g("mp_loader")}),g,this.persistence.ta(),this.fa,this.Ac(),b);g=this.g("property_blacklist");d.isArray(g)?d.h(g,function(k){delete b[k]}):this.v("Invalid value for property_blacklist config: "+g);return this.gb({type:"events",data:{event:a,properties:b},endpoint:this.$("events")+"/"+this.g("api_routes").track,jb:this.H.Z,Te:f,Ke:c},e)}});l.prototype.Re=Y(function(a,b,c){d.isArray(b)||(b=[b]);var e={};e[a]=b;this.register(e); return this.people.set(a,b,c)});l.prototype.yd=Y(function(a,b,c){var e=this.F(a),f={};void 0===e?(f[a]=[b],this.register(f)):-1===e.indexOf(b)&&(e.push(b),f[a]=e,this.register(f));return this.people.ya(a,b,c)});l.prototype.Ce=Y(function(a,b,c){var e=this.F(a);if(void 0!==e){var f=e.indexOf(b);-1(E.__SV||0)?z.s("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(d.h(E._i,function(b){b&&d.isArray(b)&&(R[b[b.length-1]]=ma.apply(this,b))}),Eb(),E.init(),d.h(R,function(b){b.Ba()}),Db())})(function(a,b){var c=document.createElement("script");c.type="text/javascript";c.async=!0;c.onload=b;c.src=a;document.head.appendChild(c)})})()